<#include "/ftl/lib/operations.ftl"/>
<div class="easyui-layout" fit="true">  
	<div region="north" style="padding:5px;border:1px solid #ddd; background-color: #f4f4f4"  id="global_${action_id}" >
		<!-- <a href="javascript:;;" onclick="channel_add_${action_id}('${id?default('')}');" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-add'">${action.getText('bg.datagrid.add')}</a> -->
	</div>  
	<div region="center" border="false">
		<div class="easyui-panel" id="main_${action_id}"  data-options="href:'${request.contextPath}${namespace?default('')}/mp/review/review-list.htm?action_id=${action_id}',fit:true">
		</div>
	</div>  
	
</div>

<script type="text/javascript">
function pass_${action_id}(data){
	$.messager.confirm('${action.getText('bg.message.warn')}', '是否确认审核通过', function(b) {
		if (b) {
			$.ajax({
				url : '${request.contextPath}${namespace?default('')}/mp/review/review-pass.json',
				data:{id : data.id},
				dataType : 'JSON',
				success : function(json) {
					$.messager.alert(json.title,json.msg,json.level);
					$("#datagrid_${action_id}").datagrid('reload');
				}
			});
		}
	});
}
function noPass_${action_id}(data){
	$.messager.confirm('${action.getText('bg.message.warn')}', '是否确认审核不通过', function(b) {
		if (b) {
			$.ajax({
				url : '${request.contextPath}${namespace?default('')}/mp/review/review-noPass.json',
				data:{id : data.id},
				dataType : 'JSON',
				success : function(json) {
					$.messager.alert(json.title,json.msg,json.level);
					$("#datagrid_${action_id}").datagrid('reload');
				}
			});
		}
	});
}
</script>
<@operations contextUri='mp/review/review' />